package com.lagou.job.demo.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;

@Component
public class TestJobTask {

    /**
     * 1、简单任务示例（Bean 模式）
     */
    @XxlJob("testHandler")
    public ReturnT<String> execute(String param) throws Exception {
        XxlJobLogger.log("Execute course auto online.");

        System.out.println("----》执行-------》");

        return ReturnT.SUCCESS;
    }

}
